package com.fruit.service.farmwork.impl;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fruit.mapper.farmwork.BaseOperationRecordMapper;
import com.fruit.pojo.farmwork.BaseOperationPerson;
import com.fruit.pojo.farmwork.BaseOperationRecord;
import com.fruit.service.farmwork.BaseOperationManager;
/**
 * 农事记录Service
 * @author Administrator
 * @version 2018.01.10 11:40
 */
@Service("baseOperationService")
public class BaseOperationService implements BaseOperationManager {
//	private  Logger logger = LoggerFactory.getLogger(BaseOperationService.class);
	@Autowired
	private BaseOperationRecordMapper baseOperationRecordMapper;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return baseOperationRecordMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(BaseOperationRecord record) {
		return baseOperationRecordMapper.insert(record);
	}

	@Override
	public BaseOperationRecord selectByPrimaryKey(Long id) {
		return baseOperationRecordMapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Map<String, Object>> getRecords(Map<String, Object> params) {
		return baseOperationRecordMapper.getRecords(params);
	}

	@Override
	public int updateByPrimaryKey(BaseOperationRecord record) {
		return baseOperationRecordMapper.updateByPrimaryKey(record);
	}

	@Override
	public int countRecords(String userId) {
		return baseOperationRecordMapper.countRecords(userId);
	}

	@Override
	public BaseOperationPerson getPerson(String userId) {
		return baseOperationRecordMapper.getPerson(userId);
	}

	@Override
	public List<Map<String, Object>> selectAreaGoodsCountId(BaseOperationRecord record) {
		return baseOperationRecordMapper.selectAreaGoodsCountId(record);
	}

	@Override
	public List<Map<String, Object>> getFarmWork() {
		return baseOperationRecordMapper.getFarmWork();
	}

	@Override
	public List<Map<String, Object>> getRegionList(Map<String, Object> pam) {
		return baseOperationRecordMapper.getRegionList(pam);
	}

	@Override
	public int insertRecords(List<BaseOperationRecord> list) {
		return baseOperationRecordMapper.insertRecords(list);
	}

}
